import request from '@/utils/request'

// 查询节点池标签配置列表
export function listPoollabel(query) {
  return request({
    url: '/system/poollabel/list',
    method: 'get',
    params: query
  })
}

// 查询节点池标签配置详细
export function getPoollabel(id) {
  return request({
    url: '/system/poollabel/' + id,
    method: 'get'
  })
}

// 新增节点池标签配置
export function addPoollabel(data) {
  return request({
    url: '/system/poollabel',
    method: 'post',
    data: data
  })
}

// 修改节点池标签配置
export function updatePoollabel(data) {
  return request({
    url: '/system/poollabel',
    method: 'put',
    data: data
  })
}

// 删除节点池标签配置
export function delPoollabel(id) {
  return request({
    url: '/system/poollabel/' + id,
    method: 'delete'
  })
}
